package com.lixinwen.gdgame.vo.jo;

import com.lixinwen.gdgame.game.entities.Hand;
import com.lixinwen.gdgame.game.room.RoomContext;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class actJO {
    private String type="play";
    private Integer index;
    private int[] handcards;
    private Hand[] actionList;
    private Integer curRank;
    private int[] rest;
    private String curMaxType;
    private Integer curMaxLevel;
    private Integer curMaxIndex;


    public actJO(RoomContext ctx){
        this.index = ctx.getCurIndex();
        this.handcards = ctx.getHandCards(index);
        this.actionList = ctx.getActionList(index);
        this.curRank = ctx.getCurRank();
        this.rest = ctx.getRest();
        this.curMaxType = ctx.getCurMaxType();
        this.curMaxLevel = ctx.getCurLevel();
        this.curMaxIndex = ctx.getCurMaxIndex();
    }
}
